<template>
  <div class="hello">
    <div layout="row stretch-stretch" class="preview">
      <div class="item">1</div>
      <div class="item">2</div>
      <div class="item">3</div>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  export default {
    data() {
      return {}
    }
  }
</script>

<style lang="scss">
  /*http://progressivered.com/fla/?d=0&v=1&h=1&s=0&i=000&a=000*/
  .preview {
    min-height: 100%;
    padding: 1px;
    overflow: auto;
    height: 45vh;
    background-color: #262626;
  }
  .item, .item:after, footer {
    text-align: center
  }

  .item, a.active {
    background-color: #03a9f4
  }

  .item {
    color: hsla(0, 0%, 100%, .6);
    outline: 1px dotted #262626;
    outline-offset: 0;
    min-width: 5em;
    min-height: 5em;
    max-width: 100%;
    line-height: 1.5rem;
    padding: .5rem;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 700;
    transition: background-image .3s ease;
    position: relative
  }

  .item-wider .item {
    width: 120px;
    min-width: 120px
  }

  .item-wide .item {
    width: 200px;
    min-width: 200px
  }

  .item-taller .item {
    height: 120px;
    min-height: 120px
  }

  .item-tall .item {
    height: 200px;
    min-height: 200px
  }

  .item-large .item {
    min-width: 200px;
    min-height: 200px
  }

  .item-5 .item:nth-child(n+6), .item-10 .item:nth-child(n+11), .item-15 .item:nth-child(n+16) {
    display: none !important
  }

  .item:after {
    content: attr(self);
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 1;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 13px;
    color: #b3e5fc;
    width: 100%;
    height: 100%;
    font-weight: 400
  }

  .item:hover {
    cursor: pointer;
    background-size: 0, 24px, cover
  }

  .item[self]:hover {
    background-size: 24px, 24px, cover
  }

  [layout*=column] .item:hover:after {
    bottom: 47%;
    padding-bottom: 0
  }

  @media screen and (max-width: 960px) {
    .controls-group {
      width: 100%
    }

    .item {
      font-size: 13px;
      padding: .125rem;
      line-height: 1
    }

    .item:after {
      font-size: 11px
    }
  }

  @media screen and (max-height: 700px) {
    .preview {
      height: calc(100vh - 12rem)
    }
  }

  @media screen and (max-width: 640px) {
    .item {
      font-size: 11px
    }
  }
</style>
